package me.liuyu2783.dubbo.spi;

import com.alibaba.dubbo.common.extension.ExtensionLoader;

/**
 * me.liuyu2783.dubbo.sample.spi
 *
 * @author liuyu07
 * @date 2020-2-28
 */
public class TestDubboSpi {

    public static void main(String[] args) {
        ExtensionLoader<PetService> extensionLoader = ExtensionLoader.getExtensionLoader(PetService.class);
        PetService petService = extensionLoader.getDefaultExtension();
//        extensionLoader.getExtension("")
        petService.getPetName();
    }
}
